package com.lhsy.djcloud.service;

import com.lhsy.djcloud.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lhsy.djcloud.entity.dto.AccountDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangzw
 * @since 2020-09-16
 */
public interface UserService extends IService<User> {

    /**
     * 根据用户名查询
     * @param loginName
     * @return
     */
    User selectByUserName(String loginName);

    void deleteByDept(Integer deptId);

    List<User> getNoSelfList(Integer userId,Integer tenantId);

    User selectByDept(Integer deptId);

    List<User> selectByDeptIds(List<Integer> deptids);

    List<AccountDto> selectAccountList(String userName, Integer level,Integer tenantId);
}
